package com.gitee.huanminabc.fastboot.web.validation;

import java.lang.annotation.Annotation;

/**
 * @description:
 * @author: huanmin
 * @create: 2025-04-02 15:12
 **/
public interface ValidationVerify {
    //返回验证注解
    Class<?> getAnnotation();
    //验证方法参数
    void verify(Object value, Annotation annotation,String gprmc) throws Exception;

    default String gprmcMerge(String gprmc,String message) {
        if (gprmc == null || gprmc.isEmpty()) {
            return message;
        }
        return gprmc + " " + message;
    }
}
